package com.cian.service.impl;

import com.cian.entity.Account;
import com.cian.mapper.AccountMapper;
import com.cian.service.IAccountService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Cian
 * @since 2021-02-26
 */
@Service
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements IAccountService {
    @Autowired
    AccountMapper accountMapper;

    @Override
    public Account selectByNameAndPassword(String username, String password) {
        return accountMapper.selectByNameAndPassword(username, password);
    }

    @Override
    public Account selectByName(String username) {
        return accountMapper.selectByName(username);
    }

    @Override
    public Integer selectByNameAndLicense(String username, String license) {
        return accountMapper.selectByNameAndLicense(username, license);
    }
}
